<template>
  <div class="E-layout-container">
    <el-container>
      <el-header class="wraper-header" height="auto">
        <slot name="header" />
      </el-header>

      <el-container>
        <el-aside class="wraper-aside no-scroll-bar" width="auto">
          <slot name="nav-menu" />
        </el-aside>

        <el-main class="wraper-body no-scroll-bar">
          <slot name="body" />
        </el-main>
      </el-container>

      <el-footer class="wraper-footer" height="auto">
        <slot name="footer" />
      </el-footer>
    </el-container>
  </div>
</template>

<script>
export default {
  props: {
    isCollapse: { type: Boolean, default: false }
  }
};
</script>

<style lang="scss" scoped>
.E-layout-container {
  width: 1100px;
  height: 700px;
  border-radius: 5px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  // border: 1px solid #eee;
  $border: 1px solid rgb(225, 225, 225);
  & > .el-container {
    height: 100%;
    & > .wraper-header,
    & > .wraper-footer {
      padding: 0;
    }
    & > .wraper-header {
    }
    & > .wraper-footer {
      border-top: $border;
    }
    & > .el-container {
      & > .wraper-aside {
        background: rgba(245, 245, 247);
        border-right: $border;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      & > .wraper-body {
        padding: 0;
        background: #fff;
      }
    }
  }
}
</style>
